var loader = new THREE.OBJLoader();		
loader.load( "teapot.obj",function(object){			
	//object.position.y = - 80;
	scene.add(object);
});


		
var geometry = new THREE.CubeGeometry( 10, 10, 10 );
var material = new THREE.MeshLambertMaterial({wireframe: false});

var mesh = new THREE.Mesh( geometry, material );
mesh.overdraw = true;
scene.add(mesh);		


		
var materials = [];
for (var i=0; i<6; i++) {
  var img = new Image();
  img.src = 'textures/planets/earth.jpg';
  var tex = new THREE.Texture(img);
  img.tex = tex;
  img.onload = function() {
	this.tex.needsUpdate = true;
  };
  var mat = new THREE.MeshBasicMaterial({color: 0xffffff, map: tex});
  materials.push(mat);
}
var cubeGeo = new THREE.CubeGeometry(400,400,400,1,1,1, mat);
var cube = new THREE.Mesh(cubeGeo, new THREE.MeshFaceMaterial());


//resize scenery on window resize
window.addEventListener( 'resize', onWindowResize, false );
function onWindowResize(){
	camera.setSize( window.innerWidth, window.innerHeight );
	camera.updateProjectionMatrix();
	renderer.setSize( window.innerWidth, window.innerHeight );
}